package com.freewater.springboot.demo.ioc.circledependency;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@EnableAspectJAutoProxy
public class AppConfig {

    @Bean
    public SimpleAspect notVeryUsefulAspect() {
        return new SimpleAspect();
    }

    @Bean
    public SomeService someService() {
        return new SomeService();
    }

    @Bean
    public OtherService otherService() {
        return new OtherService();
    }
}
